Ứng dụng Angular 9

1 {
2   
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3   
"version": 1,
4   
"newProjectRoot": "projects",
5   
"projects": {
6     
"angular-starter": {
7       
"projectType": "application",
8       
"schematics": {},
9       
"root": "",
10       
"sourceRoot": "src",
11       
"prefix": "app",
12       
"architect": {
13         
"build": {
14           
"builder": "@angular-devkit/build-angular:browser",
15           
"options": {
16             
"outputPath": "dist/angular-starter/browser",
17             
"index": "src/index.html",
18             
"main": "src/main.ts",
19             
"polyfills": "src/polyfills.ts",
20             
"tsConfig": "tsconfig.app.json",
21             
"aot": true,
22             
"assets": [
23               
"src/favicon.ico",
24               
"src/assets",
25               
"src/manifest.webmanifest",
26               
"src/sitemap.xml",
27               
"src/robots.txt"
28             ],
29             
"styles": [
30               
"src/styles.css",
31               
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
32               
"node_modules/bootstrap/dist/css/bootstrap.min.css",
33               
"src/assets/params/css/index.css"
34             ],
35             
"scripts": [
36               
"node_modules/jquery/dist/jquery.min.js",
37               
"node_modules/bootstrap/dist/js/bootstrap.min.js",
38               
"src/assets/params/js/index.js"
39             ]
40           },
41           
"configurations": {
42             
"production": {
43               
"fileReplacements": [
44                 {
45                   
"replace": "src/environments/environment.ts",
46                   
"with": "src/environments/environment.prod.ts"
47                 }
48               ],
49               
"optimization": true,
50               
"outputHashing": "all",
51               
"sourceMap": false,
52               
"extractCss": true,
53               
"namedChunks": false,
54               
"extractLicenses": true,
55               
"vendorChunk": false,
56               
"buildOptimizer": true,
57               
"budgets": [
58                 {
59                   
"type": "initial",
60                   
"maximumWarning": "2mb",
61                   
"maximumError": "5mb"
62                 },
63                 {
64                   
"type": "anyComponentStyle",
65                   
"maximumWarning": "6kb",
66                   
"maximumError": "10kb"
67                 }
68               ],
69               
"serviceWorker": true,
70               
"ngswConfigPath": "ngsw-config.json"
71             }
72           }
73         },
74         
"serve": {
75           
"builder": "@angular-devkit/build-angular:dev-server",
76           
"options": {
77             
"browserTarget": "angular-starter:build"
78           },
79           
"configurations": {
80             
"production": {
81               
"browserTarget": "angular-starter:build:production"
82             }
83           }
84         },
85         
"extract-i18n": {
86           
"builder": "@angular-devkit/build-angular:extract-i18n",
87           
"options": {
88             
"browserTarget": "angular-starter:build"
89           }
90         },
91         
"test": {
92           
"builder": "@angular-devkit/build-angular:karma",
93           
"options": {
94             
"main": "src/test.ts",
95             
"polyfills": "src/polyfills.ts",
96             
"tsConfig": "tsconfig.spec.json",
97             
"karmaConfig": "karma.conf.js",
98             
"assets": [
99               
"src/favicon.ico",
100               
"src/assets",
101               
"src/manifest.webmanifest"
102             ],
103             
"styles": ["src/styles.css"],
104             
"scripts": []
105           }
106         },
107         
"lint": {
108           
"builder": "@angular-devkit/build-angular:tslint",
109           
"options": {
110             
"tsConfig": [
111               
"tsconfig.app.json",
112               
"tsconfig.spec.json",
113               
"e2e/tsconfig.json"
114             ],
115             
"exclude": ["**/node_modules/**"]
116           }
117         },
118         
"e2e": {
119           
"builder": "@angular-devkit/build-angular:protractor",
120           
"options": {
121             
"protractorConfig": "e2e/protractor.conf.js",
122             
"devServerTarget": "angular-starter:serve"
123           },
124           
"configurations": {
125             
"production": {
126               
"devServerTarget": "angular-starter:serve:production"
127             }
128           }
129         },
130         
"server": {
131           
"builder": "@angular-devkit/build-angular:server",
132           
"options": {
133             
"outputPath": "dist/angular-starter/server",
134             
"main": "server.ts",
135             
"tsConfig": "tsconfig.server.json"
136           },
137           
"configurations": {
138             
"production": {
139               
"outputHashing": "media",
140               
"fileReplacements": [
141                 {
142                   
"replace": "src/environments/environment.ts",
143                   
"with": "src/environments/environment.prod.ts"
144                 }
145               ],
146               
"sourceMap": false,
147               
"optimization": true
148             }
149           }
150         },
151         
"serve-ssr": {
152           
"builder": "@nguniversal/builders:ssr-dev-server",
153           
"options": {
154             
"browserTarget": "angular-starter:build",
155             
"serverTarget": "angular-starter:server"
156           },
157           
"configurations": {
158             
"production": {
159               
"browserTarget": "angular-starter:build:production",
160               
"serverTarget": "angular-starter:server:production"
161             }
162           }
163         },
164         
"prerender": {
165           
"builder": "@nguniversal/builders:prerender",
166           
"options": {
167             
"browserTarget": "angular-starter:build:production",
168             
"serverTarget": "angular-starter:server:production",
169             
"routes": ["/"]
170           },
171           
"configurations": {
172             
"production": {}
173           }
174         }
175       }
176     }
177   },
178   
"defaultProject": "angular-starter"
179 }


Gõ tìm kiếm nhanh...